home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / Libraries / DCLAP 6d / dclap6d / Dmake / mac-codewar / codewarhead.c < prev    next >
Encoding:
C/C++ Source or Header  |  1996-07-05  |  3.8 KB  |  164 lines  |  [TEXT/R*ch]

  1. /* codewarhead.c */
  2. /* header for global definitions in codewarrior */
  3. /* dgg here -- I know this shouldn't go here, but need some way to define
  4.    it for all source, and dang codewar doesn't seem to have any way to globally
  5.    set defines !!!!!! */
  6.    
  7. #define DCLAP
  8. #define COMP_CODEWAR
  9.  
  10. #include <ncbilcl.h>
  11. //#include <ncbi.h>
  12.  
  13. //
  14. //    MacHeaders.c
  15. //
  16. //    Script to generate the 'MacHeaders' precompiled header for Metrowerks C/C++.
  17. //  Copyright © 1993 metrowerks inc.  All rights reserved.
  18. //
  19.  
  20. #ifndef powerc
  21.  #pragma pointers_in_D0        //    required for c-style toolbox glue function: c2pstr and p2cstr
  22.                             //    the inverse operation (pointers_in_A0) is performed at the end ...
  23. #endif
  24.  
  25. //
  26. //    To allow the use of ToolBox calls which have now become obsolete on PowerPC, but
  27. //    which are still needed for System 6 applications, we need to #define OBSOLETE.  If
  28. //    your application will never use these calls then you can comment out this #define.
  29. //    NB: This is only for 68K ...
  30. //
  31.  
  32. #ifndef powerc
  33.  #define OBSOLETE    1
  34.  #define mc68000
  35. #endif
  36.  
  37. //
  38. //    Metrowerks-specific definitions
  39. //
  40. //    These definitions are commonly used but not in Apple's headers. We define
  41. //    them in our precompiled header so we can use the Apple headers without modification.
  42. //
  43.  
  44. #define PtoCstr        p2cstr
  45. #define CtoPstr        c2pstr
  46.  
  47. #ifndef powerc
  48.  #include <MixedMode.h>
  49.  long GetCurrentA5(void)
  50.   ONEWORDINLINE(0x200D);
  51. #endif
  52.  
  53.  
  54. //
  55. //    Header files not compiled into MacHeaders
  56. //
  57.  
  58. /***************
  59. #define PtoCString    p2cstr
  60. #define CtoPString    c2pstr
  61.  
  62. #define Length(s)    (*(unsigned char *)(s))
  63. #define topLeft(r)    (((Point *) &(r))[0])
  64. #define botRight(r)    (((Point *) &(r))[1])
  65.  
  66. #define TRUE        true
  67. #define FALSE        false
  68.  
  69. #include <Controls.h>
  70. #include <Desk.h>
  71. #include <Devices.h>
  72. #include <Dialogs.h>
  73. #include <DiskInit.h>
  74. #include <Errors.h>
  75. #include <Events.h>
  76. #include <Files.h>
  77. #include <Fonts.h>
  78. #include <Lists.h>
  79. #include <LowMem.h> // included for Universal Headers ...
  80. #include <Memory.h>
  81. #include <Menus.h>
  82. #include <OSEvents.h>
  83. #include <OSUtils.h>
  84. #include <Packages.h>
  85. #include <Quickdraw.h>
  86. #include <Resources.h>
  87. #include <Scrap.h>
  88. #include <SegLoad.h>
  89. #include <StandardFile.h>
  90. #include <Strings.h> // included for Universal Headers ...
  91. #include <TextEdit.h>
  92. #include <ToolUtils.h>
  93. #include <Types.h>
  94. #include <Windows.h>
  95.  
  96. #include <ADSP.h>
  97. #include <AIFF.h>
  98. #include <Aliases.h>
  99. #include <AppleEvents.h>
  100. #include <AppleTalk.h>
  101. #include <Assembler.h>
  102. #include <Balloons.h>
  103. #include <CommResources.h>
  104. #include <Components.h>
  105. #include <Connections.h>
  106. #include <ConnectionTools.h>
  107. #include <CRMSerialDevices.h>
  108. #include <CTBUtilities.h>
  109. #include <DatabaseAccess.h>
  110. #include <DeskBus.h>
  111. #include <Disks.h>
  112. #include <Editions.h>
  113. #include <ENET.h>
  114. #include <EPPC.h>
  115. #include <FileTransfers.h>
  116. #include <FileTransferTools.h>
  117. #include <Finder.h>
  118. #include <FixMath.h>
  119. #include <Folders.h>
  120. #include <GestaltEqu.h>
  121. #include <Graf3D.h>
  122. #include <Icons.h>
  123. #include <ImageCodec.h>
  124. #include <ImageCompression.h>
  125. #include <Language.h>
  126. #include <MediaHandlers.h>
  127. #include <MIDI.h>
  128. #include <Movies.h>
  129. #include <MoviesFormat.h>
  130. #include <Notification.h>
  131. #include <Palette.h>
  132. #include <Palettes.h>
  133. #include <Picker.h>
  134. #include <PictUtil.h>
  135. #include <Power.h>
  136. #include <PPCToolBox.h>
  137. #include <Printing.h>
  138. #include <PrintTraps.h>
  139. #include <Processes.h>
  140. #include <QDOffscreen.h>
  141. #include <QuickTimeComponents.h>
  142. #include <Retrace.h>
  143. #include <ROMDefs.h>
  144. #include <SANE.h>
  145. #include <Script.h>
  146. #include <SCSI.h>
  147. #include <Serial.h>
  148. #include <ShutDown.h>
  149. #include <Slots.h>
  150. #include <Sound.h>
  151. #include <SoundInput.h>
  152. #include <Start.h>
  153. #include <Terminals.h>
  154. #include <TerminalTools.h>
  155. #include <Timer.h>
  156. #include <Traps.h>
  157. #include <Values.h>
  158. #include <Video.h>
  159. *********/
  160.  
  161. #ifndef powerc
  162.  #pragma pointers_in_A0        //    required for c-style toolbox glue function: c2pstr and p2cstr
  163. #endif
  164.